{$CLEO .cs}
Alloc($PLAYER_CHAR, 2)
Alloc($PLAYER_ACTOR, 3)

script_name 'STARGAZER'

:STARGAZER_19
wait 100
if 
  Player.IsPlaying($PLAYER_CHAR)
goto_if_false @STARGAZER_237
goto @STARGAZER_46

:STARGAZER_46
if and
  Char.IsInModel($PLAYER_ACTOR, 30309) //// Your Vehicle ID here (30309)
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STARGAZER_237
0@ = Char.GetCarIsUsing($PLAYER_ACTOR)
if 
  not Car.IsDead(0@)
goto_if_false @STARGAZER_225
if 
  not Car.IsInWater(0@)
goto_if_false @STARGAZER_225
5@ = Car.GetSpeed(0@)
6@ = 5.0
if 
  is_float_lvar_greater_than_float_lvar 5@ > 6@
goto_if_false @STARGAZER_225
1@, 2@, 3@ = Car.GetOffsetInWorldCoords(0@, 0.0, -4.09, 0.0)   //// afterburner X Y Zcoords
4@ = Particle.Create("explosion_tiny", 1@, 2@, 3@, 4)
Particle.PlayAndKill(4@)
goto @STARGAZER_225

:STARGAZER_225
Car.MarkAsNoLongerNeeded(0@)
goto @STARGAZER_237

:STARGAZER_237
wait 0
goto @STARGAZER_19
